package com.team.employment.web.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.team.employment.model.entity.UserInfo;
import com.team.employment.web.admin.dto.UserQueryDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author jade
* @description 针对表【user_info(用户信息表)】的数据库操作Mapper
* @createDate 2025-04-11 15:49:27
* @Entity com.team.employment.model.entity.UserInfo
*/
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    UserInfo login(@Param("phone")String phone, String password);

    IPage<UserInfo> pageQueryInfo(IPage<UserInfo> page, UserQueryDto userQueryDto);

    //更新用户token
    @Update("update user_info set token = #{token} where phone = #{phone}")
    void updateTokenByPhone(@Param("phone") String phone,@Param("token") String token);


}




